﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            Studen stu1 = new Studen("孙悟空");
            stu1.teacherinfo();
            Studen stu2 = new Studen("猪八戒");
            stu2.teacherinfo();
            Studen stu3 = new Studen("沙和尚");
            stu3.teacherinfo();
            Studen stu4 = new Studen("白龙马");
            stu4.teacherinfo();

            teacherinfo1();
            Studen stu5= new Studen("孙悟空");
            stu5.teacherinfo();
            Studen stu6 = new Studen("猪八戒");
            stu6.teacherinfo();
            Studen stu7 = new Studen("沙和尚");
            stu7.teacherinfo();
            Studen stu8 = new Studen("白龙马");
            stu8.teacherinfo();
        }
        public static string tname = "唐僧";
        public static void teacherinfo1()
        {
            tname = "嫦娥姐姐";
        }
    }
}
